package com.wang.action;

import com.wang.entity.TbBbsTransmit;
import com.wang.response.ResultResponse;
import com.wang.service.TbBbsTransmitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/bbs")
public class BbstransmitAction {
     @Autowired
     private TbBbsTransmitService tbBbsTransmitService;
     /*
    转发
    */
    @PostMapping("insertbbstransmit")
    private ResultResponse insertbbstransmit(@RequestBody TbBbsTransmit tbBbsTransmit){
        return this.tbBbsTransmitService.insertbbstransmit(tbBbsTransmit);
    }
    /*
     删除转发
     */
    @PostMapping("removebbsTransmit/{transmitId}")
    private ResultResponse removebbsTransmit(@PathVariable Integer transmitId){
        return this.tbBbsTransmitService.removebbsTransmit(transmitId);
    }
    /*
    查看转发
     */
    @PostMapping("findbbsTransmit")
    private ResultResponse findbbsTransmit(@RequestBody TbBbsTransmit tbBbsTransmit){
        return this.tbBbsTransmitService.findbbsTransmit(tbBbsTransmit);
    }
    /*
      所有查看转发
       */
    @PostMapping("findbbsTransmitall")
    private ResultResponse findbbsTransmitall(@RequestBody  TbBbsTransmit tbBbsTransmit){
        return this.tbBbsTransmitService.findbbsTransmitall(tbBbsTransmit);
    }
}
